package com.itlong.cloud.POJO.DTO.sdk;

import com.itlong.cloud.POJO.DTO.BaseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * <desc>
 *      SDK添加APP用户DTO
 * </desc>
 *
 * @createDate 2017/11/16
 */

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class SDKSaveAppUserDTO extends BaseDTO implements Serializable {

    //当前用户手机号
    private String userPhone;

    //父级授权人UserId
    private String authUserId;

    //被授权人在房间中的身份类型 1-业主本人  2-亲属
    private Integer houseType;

    //用户备注
    private String userRemarks;

    //灵云绑定的应用ID
    private String lykzAppId;

    //APP用户拥有的房间集合
    private List<SDKRoomInfoSaveDTO> userRoomList;

    private String realName;          //姓名
    private Integer gender;        //性别：1男 0女
    private String userId;

    public SDKSaveAppUserDTO(String projectId,String authUserId, String userPhone, Integer houseType, List<SDKRoomInfoSaveDTO> userRoomList,String userRemarks) {
        super.setProjectId(projectId);
        this.userPhone = userPhone;
        this.authUserId = authUserId;
        this.houseType = houseType;
        this.userRoomList = userRoomList;
        this.userRemarks = userRemarks;
    }
}